<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- meta http-equiv="refresh" content="5"-->
<title>Job Detail</title>
</head>
<body>
Job Name: ${job.name } <button onclick="build('${job.name }')">build</button>
<br/><br/>
SVN Revision: <c:out value="${rev}"></c:out>
<br/><br/>
Build Result<br/>
lastBuild: ${job.lastBuild.number }<br/>
lastCompletedBuild: ${job.lastCompletedBuild.number }<br/>
lastFailedBuild: ${job.lastFailedBuild.number }<br/>
lastStableBuild: ${job.lastStableBuild.number }<br/>
lastSuccessfulBuild: ${job.lastSuccessfulBuild.number }<br/>
<br/>
<br/>
<a href="/bud-dashboard/jobBuildList/${job.name }">BuildList</a>
<a href="/bud-dashboard/jobRevisionList/${job.name }">RevisionList</a>
</body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
function build(jobName) {
	location.href= "/bud-dashboard/jobBuild/" + jobName;
}
</script>
</html>